package com.eshop.modules.user.service;

import java.util.List;
import com.eshop.modules.user.vo.UserAddressQueryVo;
import com.eshop.modules.user.param.AddressParam;
import com.eshop.modules.user.domain.UserAddress;
import com.eshop.common.service.BaseService;

public interface UserAddressService extends BaseService<UserAddress>
{
    void setDefault(final Long uid, final Long addressId);

    Long addAndEdit(final Long uid, final AddressParam param);

    UserAddressQueryVo getDetail(final Long id);

    List<UserAddressQueryVo> getList(final Long uid, final int page, final int limit);

    UserAddress getUserDefaultAddress(final Long uid);
}
